<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Cencat SaaS - 低代码平台</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            primary: '#165DFF',
            secondary: '#36CFC9',
            success: '#52C41A',
            warning: '#FAAD14',
            danger: '#FF4D4F',
            info: '#40A9FF',
            dark: '#1D2129',
            'dark-2': '#4E5969',
            'light-1': '#F2F3F5',
            'light-2': '#E5E6EB',
            'light-3': '#C9CDD4'
          },
          fontFamily: {
            inter: ['Inter', 'system-ui', 'sans-serif'],
          },
          boxShadow: {
            'card': '0 2px 14px 0 rgba(0, 0, 0, 0.06)',
            'card-hover': '0 6px 20px 0 rgba(0, 0, 0, 0.1)',
            'dropdown': '0 4px 16px rgba(0, 0, 0, 0.12)',
            'modal': '0 10px 30px -5px rgba(0, 0, 0, 0.1)',
          }
        },
      }
    }
  </script>
  
  <style>
    body { font-family: 'Inter', system-ui, sans-serif; overflow-x: hidden; }
    html { scroll-behavior: smooth; }
    .progress-bar { transition: width 1s ease-in-out; }
    .table-row-hover { transition: background-color 0.2s ease; }
    .table-row-hover:hover { background-color: rgba(242, 243, 245, 0.5); }
    
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .animate-fade-in { animation: fadeIn 0.3s ease-in-out; }
    .animate-slide-in { animation: slideIn 0.3s ease-out; }
    
    .component-draggable { cursor: grab; transition: transform 0.2s ease; }
    .component-draggable:active { cursor: grabbing; transform: scale(0.95); }
    
    .canvas-area { background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f0f0 75%), linear-gradient(-45deg, transparent 75%, #f0f0f0 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
  </style>
</head>

<body class="bg-light-1 text-dark overflow-x-hidden">
  <div class="flex h-screen">
    <!-- 侧边栏导航 -->
    <aside id="sidebar" class="w-64 bg-white h-full shadow-md fixed left-0 top-0 z-30 transition-all duration-300 transform md:translate-x-0 -translate-x-full">
      <div class="p-4 border-b border-light-2 flex items-center space-x-3">
        <div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
          <i class="fa fa-cubes text-white text-xl"></i>
        </div>
        <div>
          <h1 class="text-lg font-bold text-primary">Cencat SaaS</h1>
          <p class="text-xs text-dark-2">多租户管理平台</p>
        </div>
        <button id="close-sidebar" class="ml-auto md:hidden text-dark-2 hover:text-primary">
          <i class="fa fa-times"></i>
        </button>
      </div>
      
      <div class="p-4 border-b border-light-2">
        <div class="flex items-center space-x-3">
          <div class="w-10 h-10 bg-light-1 rounded-full overflow-hidden">
            <img src="https://picsum.photos/id/1005/200/200" alt="当前租户Logo" class="w-full h-full object-cover">
          </div>
          <div>
            <p class="font-medium text-sm">云帆科技有限公司</p>
            <p class="text-xs text-dark-2">企业版 | ID: T2025001</p>
          </div>
        </div>
        <button id="switch-tenant-btn" class="mt-3 w-full text-xs text-primary hover:text-primary/80 flex items-center justify-center space-x-1 transition-all duration-300">
          <i class="fa fa-exchange"></i>
          <span>切换租户</span>
        </button>
      </div>
      
      <nav class="p-3">
        <ul class="space-y-1">
          <li class="text-xs font-semibold text-dark-2 uppercase tracking-wider px-3 py-2">主导航</li>
          
          <li>
            <a href="dashboard.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-dashboard w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>仪表盘</span>
            </a>
          </li>
          
          <li>
            <a href="tenants.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-building-o w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>租户管理</span>
            </a>
          </li>
          
          <li class="text-xs font-semibold text-dark-2 uppercase tracking-wider px-3 py-2 mt-4">AI赋能功能</li>
          
          <li>
            <a href="ai-code-generator.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-code w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>AI代码生成</span>
            </a>
          </li>
          
          <li>
            <a href="ai-log-diagnosis.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-bug w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>日志智能诊断</span>
            </a>
          </li>
          
          <li>
            <a href="ai-customer-service.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-comments-o w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>智能客服</span>
            </a>
          </li>
          
          <li>
            <a href="low-code-platform.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg bg-primary/10 text-primary group transition-all duration-300">
              <i class="fa fa-puzzle-piece w-5 h-5 mr-3"></i>
              <span>低代码平台</span>
            </a>
          </li>
          
          <li class="text-xs font-semibold text-dark-2 uppercase tracking-wider px-3 py-2 mt-4">系统管理</li>
          
          <li>
            <a href="configurations.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-key w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>配置管理</span>
            </a>
          </li>
          
          <li class="text-xs font-semibold text-dark-2 uppercase tracking-wider px-3 py-2 mt-4">系统设置</li>
          
          <li>
            <a href="packages.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-tags w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>套餐管理</span>
            </a>
          </li>
          
          <li>
            <a href="security.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-shield w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>安全设置</span>
            </a>
          </li>
          
          <li>
            <a href="logs.html" class="flex items-center px-3 py-2.5 text-sm rounded-lg text-dark hover:bg-light-1 group transition-all duration-300">
              <i class="fa fa-file-text-o w-5 h-5 mr-3 text-dark-2 group-hover:text-dark transition-all duration-300"></i>
              <span>操作日志</span>
            </a>
          </li>
        </ul>
      </nav>
      
      <div class="absolute bottom-0 left-0 right-0 p-4 border-t border-light-2">
        <div class="bg-light-1 rounded-lg p-3">
          <div class="flex items-center justify-between mb-2">
            <span class="text-xs text-dark-2">低代码使用率</span>
            <span class="text-xs font-medium">78%</span>
          </div>
          <div class="h-1.5 bg-light-2 rounded-full overflow-hidden">
            <div class="h-full bg-success rounded-full progress-bar" style="width: 78%"></div>
          </div>
          <button class="mt-2 w-full text-xs bg-primary/10 text-primary py-1.5 rounded hover:bg-primary/20 transition-all duration-300">
            查看统计
          </button>
        </div>
      </div>
    </aside>

    <!-- 主内容区 -->
    <div class="flex-1 md:ml-64 transition-all duration-300">
      <!-- 顶部导航栏 -->
      <header class="bg-white shadow-sm sticky top-0 z-20">
        <div class="flex items-center justify-between p-4">
          <div class="flex items-center">
            <button id="toggle-sidebar" class="mr-4 text-dark-2 hover:text-primary md:hidden">
              <i class="fa fa-bars text-xl"></i>
            </button>
            <div class="relative">
              <input type="text" placeholder="搜索组件或功能..." class="pl-10 pr-4 py-2 rounded-lg bg-light-1 text-sm w-64 focus:outline-none focus:ring-2 focus:ring-primary/30">
              <i class="fa fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-dark-2"></i>
            </div>
          </div>
          
          <div class="flex items-center space-x-4">
            <div class="relative">
              <button id="notification-btn" class="w-10 h-10 rounded-full flex items-center justify-center hover:bg-light-1 relative transition-all duration-300">
                <i class="fa fa-bell-o text-dark-2"></i>
                <span class="absolute top-1 right-1 w-2 h-2 bg-danger rounded-full"></span>
              </button>
            </div>
            
            <button class="w-10 h-10 rounded-full flex items-center justify-center hover:bg-light-1 transition-all duration-300">
              <i class="fa fa-question text-dark-2"></i>
            </button>
            
            <div class="relative">
              <button id="user-menu-btn" class="flex items-center space-x-2">
                <div class="w-9 h-9 rounded-full overflow-hidden border-2 border-transparent hover:border-primary transition-all duration-300">
                  <img src="https://picsum.photos/id/1012/200/200" alt="管理员头像" class="w-full h-full object-cover">
                </div>
                <div class="hidden md:block text-left">
                  <p class="text-sm font-medium">张管理员</p>
                  <p class="text-xs text-dark-2">超级管理员</p>
                </div>
                <i class="fa fa-angle-down text-dark-2 hidden md:block"></i>
              </button>
            </div>
          </div>
        </div>
      </header>

      <!-- 页面内容 -->
      <main class="p-4 md:p-6">
        <!-- 页面标题和操作 -->
        <div class="mb-6 animate-fade-in flex flex-col md:flex-row md:items-center justify-between gap-4">
          <div>
            <h2 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-dark">低代码平台</h2>
            <p class="text-dark-2 mt-1">可视化表单设计、流程设计和报表设计平台</p>
          </div>
          
          <div class="flex space-x-3">
            <button class="bg-light-1 text-dark hover:bg-light-2 text-sm px-4 py-2 rounded-lg transition-all duration-300 flex items-center">
              <i class="fa fa-save mr-2"></i>
              <span>保存项目</span>
            </button>
            
            <button class="bg-primary text-white text-sm px-4 py-2 rounded-lg hover:bg-primary/90 transition-all duration-300 flex items-center">
              <i class="fa fa-play mr-2"></i>
              <span>预览效果</span>
            </button>
            
            <button class="bg-success text-white text-sm px-4 py-2 rounded-lg hover:bg-success/90 transition-all duration-300 flex items-center">
              <i class="fa fa-download mr-2"></i>
              <span>导出代码</span>
            </button>
          </div>
        </div>

        <!-- 低代码平台主界面 -->
        <div class="grid grid-cols-1 xl:grid-cols-4 gap-6 mb-6">
          <!-- 组件库 -->
          <div class="xl:col-span-1 bg-white rounded-xl shadow-card p-6 animate-slide-in">
            <h3 class="text-lg font-semibold mb-4">组件库</h3>
            
            <div class="space-y-3">
              <div class="p-3 bg-light-1 rounded-lg component-draggable">
                <div class="flex items-center space-x-2">
                  <i class="fa fa-font text-primary"></i>
                  <span class="text-sm font-medium">文本框</span>
                </div>
                <p class="text-xs text-dark-2 mt-1">单行文本输入框</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg component-draggable">
                <div class="flex items-center space-x-2">
                  <i class="fa fa-align-left text-success"></i>
                  <span class="text-sm font-medium">多行文本</span>
                </div>
                <p class="text-xs text-dark-2 mt-1">多行文本输入框</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg component-draggable">
                <div class="flex items-center space-x-2">
                  <i class="fa fa-list text-warning"></i>
                  <span class="text-sm font-medium">下拉框</span>
                </div>
                <p class="text-xs text-dark-2 mt-1">下拉选择框</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg component-draggable">
                <div class="flex items-center space-x-2">
                  <i class="fa fa-calendar text-info"></i>
                  <span class="text-sm font-medium">日期选择</span>
                </div>
                <p class="text-xs text-dark-2 mt-1">日期选择器</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg component-draggable">
                <div class="flex items-center space-x-2">
                  <i class="fa fa-upload text-danger"></i>
                  <span class="text-sm font-medium">文件上传</span>
                </div>
                <p class="text-xs text-dark-2 mt-1">文件上传组件</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg component-draggable">
                <div class="flex items-center space-x-2">
                  <i class="fa fa-table text-secondary"></i>
                  <span class="text-sm font-medium">表格</span>
                </div>
                <p class="text-xs text-dark-2 mt-1">数据表格组件</p>
              </div>
            </div>
            
            <div class="border-t border-light-2 pt-4 mt-4">
              <h4 class="text-sm font-medium mb-3">自定义组件</h4>
              <button class="w-full text-xs bg-primary/10 text-primary py-2 rounded hover:bg-primary/20 transition-all duration-300">
                <i class="fa fa-plus mr-1"></i>
                <span>上传自定义组件</span>
              </button>
            </div>
          </div>

          <!-- 设计画布 -->
          <div class="xl:col-span-2 bg-white rounded-xl shadow-card p-6 animate-slide-in">
            <div class="flex items-center justify-between mb-4">
              <h3 class="text-lg font-semibold">设计画布</h3>
              <div class="flex items-center space-x-2">
                <button class="text-xs bg-light-1 hover:bg-light-2 px-3 py-1 rounded transition-all duration-300">
                  <i class="fa fa-undo mr-1"></i>
                  <span>撤销</span>
                </button>
                <button class="text-xs bg-light-1 hover:bg-light-2 px-3 py-1 rounded transition-all duration-300">
                  <i class="fa fa-repeat mr-1"></i>
                  <span>重做</span>
                </button>
                <button class="text-xs bg-light-1 hover:bg-light-2 px-3 py-1 rounded transition-all duration-300">
                  <i class="fa fa-trash mr-1"></i>
                  <span>清空</span>
                </button>
              </div>
            </div>
            
            <!-- 画布区域 -->
            <div class="canvas-area h-96 rounded-lg border-2 border-dashed border-light-2 p-4">
              <div class="grid grid-cols-2 gap-4">
                <!-- 示例表单布局 -->
                <div class="bg-white rounded-lg p-4 shadow-sm border border-light-2">
                  <h4 class="text-sm font-medium mb-3">用户信息表单</h4>
                  <div class="space-y-3">
                    <div>
                      <label class="text-xs text-dark-2 mb-1 block">姓名</label>
                      <input type="text" class="w-full p-2 border border-light-2 rounded text-sm" placeholder="请输入姓名">
                    </div>
                    <div>
                      <label class="text-xs text-dark-2 mb-1 block">邮箱</label>
                      <input type="email" class="w-full p-2 border border-light-2 rounded text-sm" placeholder="请输入邮箱">
                    </div>
                    <div>
                      <label class="text-xs text-dark-2 mb-1 block">部门</label>
                      <select class="w-full p-2 border border-light-2 rounded text-sm">
                        <option>技术部</option>
                        <option>市场部</option>
                        <option>财务部</option>
                      </select>
                    </div>
                  </div>
                </div>
                
                <div class="bg-white rounded-lg p-4 shadow-sm border border-light-2">
                  <h4 class="text-sm font-medium mb-3">操作按钮</h4>
                  <div class="flex space-x-2">
                    <button class="flex-1 bg-primary text-white text-sm py-2 rounded hover:bg-primary/90 transition-all duration-300">
                      提交
                    </button>
                    <button class="flex-1 bg-light-1 text-dark text-sm py-2 rounded hover:bg-light-2 transition-all duration-300">
                      重置
                    </button>
                  </div>
                </div>
              </div>
            </div>
            
            <!-- 画布操作 -->
            <div class="flex items-center justify-between mt-4">
              <div class="flex items-center space-x-2">
                <span class="text-xs text-dark-2">缩放:</span>
                <button class="w-8 h-8 bg-light-1 rounded flex items-center justify-center hover:bg-light-2">-</button>
                <span class="text-sm font-medium">100%</span>
                <button class="w-8 h-8 bg-light-1 rounded flex items-center justify-center hover:bg-light-2">+</button>
              </div>
              
              <div class="flex items-center space-x-2">
                <span class="text-xs text-dark-2">网格:</span>
                <button class="w-8 h-8 bg-primary text-white rounded flex items-center justify-center">开</button>
                <button class="w-8 h-8 bg-light-1 rounded flex items-center justify-center hover:bg-light-2">关</button>
              </div>
            </div>
          </div>

          <!-- 属性面板 -->
          <div class="xl:col-span-1 bg-white rounded-xl shadow-card p-6 animate-slide-in">
            <h3 class="text-lg font-semibold mb-4">属性面板</h3>
            
            <div class="space-y-4">
              <div>
                <label class="text-sm font-medium mb-2 block">组件类型</label>
                <select class="w-full p-2 border border-light-2 rounded text-sm">
                  <option>文本框</option>
                  <option>多行文本</option>
                  <option>下拉框</option>
                  <option>日期选择</option>
                </select>
              </div>
              
              <div>
                <label class="text-sm font-medium mb-2 block">字段名称</label>
                <input type="text" class="w-full p-2 border border-light-2 rounded text-sm" placeholder="请输入字段名称">
              </div>
              
              <div>
                <label class="text-sm font-medium mb-2 block">占位符文本</label>
                <input type="text" class="w-full p-2 border border-light-2 rounded text-sm" placeholder="请输入占位符">
              </div>
              
              <div>
                <label class="text-sm font-medium mb-2 block">验证规则</label>
                <div class="space-y-2">
                  <label class="flex items-center space-x-2">
                    <input type="checkbox" class="rounded">
                    <span class="text-sm">必填字段</span>
                  </label>
                  <label class="flex items-center space-x-2">
                    <input type="checkbox" class="rounded">
                    <span class="text-sm">邮箱格式</span>
                  </label>
                  <label class="flex items-center space-x-2">
                    <input type="checkbox" class="rounded">
                    <span class="text-sm">手机号格式</span>
                  </label>
                </div>
              </div>
              
              <div>
                <label class="text-sm font-medium mb-2 block">样式设置</label>
                <div class="grid grid-cols-2 gap-2">
                  <input type="text" class="p-2 border border-light-2 rounded text-sm" placeholder="宽度">
                  <input type="text" class="p-2 border border-light-2 rounded text-sm" placeholder="高度">
                </div>
              </div>
            </div>
            
            <button class="w-full mt-4 bg-primary text-white py-2 rounded-lg hover:bg-primary/90 transition-all duration-300">
              应用属性
            </button>
          </div>
        </div>

        <!-- 功能模块 -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
          <!-- 表单设计 -->
          <div class="bg-white rounded-xl shadow-card p-6 animate-slide-in">
            <div class="flex items-center mb-4">
              <div class="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mr-3">
                <i class="fa fa-file-text-o text-primary text-xl"></i>
              </div>
              <div>
                <h3 class="text-lg font-semibold">表单设计器</h3>
                <p class="text-sm text-dark-2">可视化表单设计工具</p>
              </div>
            </div>
            
            <div class="space-y-3">
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">拖拽式设计</p>
                <p class="text-xs text-dark-2">支持100+组件拖拽布局</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">实时预览</p>
                <p class="text-xs text-dark-2">所见即所得的设计体验</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">代码导出</p>
                <p class="text-xs text-dark-2">支持Vue/React/Angular代码</p>
              </div>
            </div>
            
            <button class="w-full mt-4 bg-primary text-white py-2 rounded-lg hover:bg-primary/90 transition-all duration-300">
              开始设计
            </button>
          </div>

          <!-- 流程设计 -->
          <div class="bg-white rounded-xl shadow-card p-6 animate-slide-in">
            <div class="flex items-center mb-4">
              <div class="w-12 h-12 bg-success/10 rounded-lg flex items-center justify-center mr-3">
                <i class="fa fa-sitemap text-success text-xl"></i>
              </div>
              <div>
                <h3 class="text-lg font-semibold">流程设计器</h3>
                <p class="text-sm text-dark-2">BPMN 2.0流程设计</p>
              </div>
            </div>
            
            <div class="space-y-3">
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">节点拖拽</p>
                <p class="text-xs text-dark-2">支持审批、分支、并行网关</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">条件流转</p>
                <p class="text-xs text-dark-2">支持复杂条件判断</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">流程监控</p>
                <p class="text-xs text-dark-2">实时跟踪流程进度</p>
              </div>
            </div>
            
            <button class="w-full mt-4 bg-success text-white py-2 rounded-lg hover:bg-success/90 transition-all duration-300">
              开始设计
            </button>
          </div>

          <!-- 报表设计 -->
          <div class="bg-white rounded-xl shadow-card p-6 animate-slide-in">
            <div class="flex items-center mb-4">
              <div class="w-12 h-12 bg-info/10 rounded-lg flex items-center justify-center mr-3">
                <i class="fa fa-bar-chart text-info text-xl"></i>
              </div>
              <div>
                <h3 class="text-lg font-semibold">报表设计器</h3>
                <p class="text-sm text-dark-2">可视化报表设计平台</p>
              </div>
            </div>
            
            <div class="space-y-3">
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">多维分析</p>
                <p class="text-xs text-dark-2">支持多维度数据钻取</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">图表类型</p>
                <p class="text-xs text-dark-2">柱状图、折线图、饼图等</p>
              </div>
              
              <div class="p-3 bg-light-1 rounded-lg">
                <p class="text-sm font-medium">数据导出</p>
                <p class="text-xs text-dark-2">支持Excel/PDF导出</p>
              </div>
            </div>
            
            <button class="w-full mt-4 bg-info text-white py-2 rounded-lg hover:bg-info/90 transition-all duration-300">
              开始设计
            </button>
          </div>
        </div>

        <!-- 项目统计 -->
        <div class="bg-white rounded-xl shadow-card p-6 animate-slide-in">
          <h3 class="text-lg font-semibold mb-4">项目统计</h3>
          
          <div class="grid grid-cols-1 md:grid-cols-4 gap-6">
            <div class="text-center">
              <div class="w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-2">
                <i class="fa fa-file-text-o text-primary text-2xl"></i>
              </div>
              <p class="text-2xl font-bold">24</p>
              <p class="text-sm text-dark-2">表单项目</p>
            </div>
            
            <div class="text-center">
              <div class="w-16 h-16 bg-success/10 rounded-full flex items-center justify-center mx-auto mb-2">
                <i class="fa fa-sitemap text-success text-2xl"></i>
              </div>
              <p class="text-2xl font-bold">12</p>
              <p class="text-sm text-dark-2">流程项目</p>
            </div>
            
            <div class="text-center">
              <div class="w-16 h-16 bg-info/10 rounded-full flex items-center justify-center mx-auto mb-2">
                <i class="fa fa-bar-chart text-info text-2xl"></i>
              </div>
              <p class="text-2xl font-bold">8</p>
              <p class="text-sm text-dark-2">报表项目</p>
            </div>
            
            <div class="text-center">
              <div class="w-16 h-16 bg-warning/10 rounded-full flex items-center justify-center mx-auto mb-2">
                <i class="fa fa-users text-warning text-2xl"></i>
              </div>
              <p class="text-2xl font-bold">156</p>
              <p class="text-sm text-dark-2">使用用户</p>
            </div>
          </div>
        </div>
      </main>
    </div>
  </div>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      // 侧边栏切换
      const sidebar = document.getElementById('sidebar');
      const toggleSidebar = document.getElementById('toggle-sidebar');
      const closeSidebar = document.getElementById('close-sidebar');
      
      toggleSidebar.addEventListener('click', function() {
        sidebar.classList.toggle('-translate-x-full');
      });
      
      closeSidebar.addEventListener('click', function() {
        sidebar.classList.add('-translate-x-full');
      });
      
      // 组件拖拽功能
      const draggableComponents = document.querySelectorAll('.component-draggable');
      draggableComponents.forEach(component => {
        component.addEventListener('dragstart', function(e) {
          e.dataTransfer.setData('text/plain', this.querySelector('.font-medium').textContent);
        });
      });
      
      // 画布区域
      const canvas = document.querySelector('.canvas-area');
      canvas.addEventListener('dragover', function(e) {
        e.preventDefault();
        this.style.borderColor = '#165DFF';
      });
      
      canvas.addEventListener('dragleave', function() {
        this.style.borderColor = '#E5E6EB';
      });
      
      canvas.addEventListener('drop', function(e) {
        e.preventDefault();
        this.style.borderColor = '#E5E6EB';
        const componentType = e.dataTransfer.getData('text/plain');
        alert(`添加组件: ${componentType}`);
      });
    });
  </script>
</body>
</html>